<?php
/*
Plugin Name: Links
Plugin URI: http://www.yhustc.com/
Description: 友情链接
Author: yhustc
Version: 1.0
Author URI: http://www.yhustc.com/
*/

class LinksWidget extends Widget
{
	function render($data=array())
	{
		$linkList = S("linkList");
		if(!$linkList)
		{
			$Dao = D("Links");
			$linkList = $Dao->order("link_rating ASC")->findAll();
			S("linkList",$linkList);
		}

		$this->assign("linkList",$linkList);
		return $this->renderFile();
	}
}
?>